﻿@extends('Layout/layout')

@section('yemian')
<style type="text/css">
	.e_css {
    background: url(/public/images/lift_li_02_02.gif) no-repeat;
    width: 179px;
    font-weight: bold;
    color: #000;
    z-index: 1;
	}
</style>
<script type="text/javascript">
	$(document).ready(function(){ 
	 
		document.getElementById("contract").className = "e_css";
	}); 
</script>
<body class="mian_bj">
<div class="mian_top_01">
<div class="mian_top_r"></div>
<div class="mian_top_l"></div>
<div class="mian_top_c">
<ul>
<li><a href="{{ url('/Lzk/Contract') }}"><p>企业合同</p></a></li>
<li><a href="{{ url('/Lzk/PersonContract') }}"><p>人事合同</p></a></li>
</ul>
</div>
<div class="mian_b">
<div class="mian_b1">
<a href="{{ url('/Lzk/PersonContract/add') }}" title="添加" ><p class="mian_b1_a1"></p></a>

<form action="{{url('/Lzk/PersonContract')}}" modth="get">
<p class="mian_b1_sousuo"><input name="name" type="text" value="签约人"></p>
<input type="image" src="/public/images/1.jpg" style="margin:13px;">
</form>

	
</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mian_b_bg">
<tr>
<td width="3%" class="mian_b_bg_lm"></td>
<td width="11%" class="mian_b_bg_lm"><span></span>签约人</td>
<td width="13%" class="mian_b_bg_lm"><span></span>签约合同</td>
<td width="11%" class="mian_b_bg_lm"><span></span>合同生效日期</td>
<td width="13%" class="mian_b_bg_lm"><span></span>合同终止日期</td>
<td width="15%" class="mian_b_bg_lm"><span></span>合同签订日期</td>
<td width="15%" class="mian_b_bg_lm"><span></span>合同状态</td>
<td colspan="5" class="mian_b_bg_lm"><span></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;操作</td>
</tr>

@foreach($pinfo as $k=>$v)
<tr>
<td><input name="" type="checkbox" value="">&nbsp;</td>
<td>{{$v['PName']}}</td>
<td>{{$v['ConName']}}</td>
<td>{{$v['EffectiveDate']}}</td>
<td>{{$v['ExpirationDate']}}</td>
<td>{{date('Y-m-d H:i:s',$v['Date'])}}</td>
<td>{{str_replace([1,2],['到期终止','正常状态'],$v['State'])}}</td>
<td width="4%"><a href="{{ url('/Lzk/PersonContract/edit',['id'=>$v['id']]) }}">&nbsp;修改</a></td>
<td width="6%"><a href="{{ url('/Lzk/PersonContract/look',['id'=>$v['id']]) }}">&nbsp; 查看</a></td>
<td width="6%"><a href="{{ url('/Lzk/PersonContract/del',['id'=>$v['id']]) }}">删除</a></td>
</tr>
@endforeach

</table>
<div style="float:left;" id="fenye">
{!! $pinfo->appends($info)->render() !!}
</div>
</div>
</div>
</body>

@endsection